<?php
//宝くじ発表時間チェック

header('Content-Type: text/html; charset=UTF-8');
$click = $_POST["click"];

$error = "null";
$start_time = "05 00:00:00";
$end_time = "26 00:00:00";
if($click == "1"){
	$end_time = "26 01:00:00";
}
$now = date ("d H:i:s",time());
if($now >= $end_time || $now < $start_time){
	$error = "timeout";
}
echo '<data>
	<setVariable type="text" name="system_d" value="'.(date("d",time()) + 0).'" />
	<setVariable type="text" name="error" value="'.$error.'" />
	<phpover />
</data>';
?>